﻿@model  PagedMovieModel

@section Scripts {
 <script src="@Url.Content("~/Scripts/Views/Home/MovieList.js")" type="text/javascript"></script>
}

@{
    ViewBag.Title = "Search Result for \"" + ViewBag.SearchTerm + "\"";
}

@Html.Partial("_MovieList",Model.Movies)

@section Footer{
     @MvcHtmlString.Create(@Html.Pager(Model.NextPageBaseUrl, Model.Page, Model.PageSize, Model.TotalAmountOfMovies))
}

<div class="movieCount">Search "@ViewBag.SearchTerm" contains @Model.TotalAmountOfMovies movie(s).</div>

<div>
    <a href="#" onclick="history.back(); return false;">Back to List</a>
</div>

